package com.example.tse.rbhttpservice.service.home.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.home.model.HomeGetSpecials;
/**
* 获取热卖推荐
* @author wliu
* edit tse
*/
public class HomeGetSpecialsResponse extends RudderResponse{

private List<HomeGetSpecials> getSpecials = new ArrayList<HomeGetSpecials>();


/**
* @return getSpecials
*/
public List<HomeGetSpecials> getGetSpecials() {
return this.getSpecials;
}

/**
* @return getSpecials
*/
public void setGetSpecials(List<HomeGetSpecials> getSpecials) {
this.getSpecials = getSpecials;
}
/**
methodName    GetSpecials
type          List<HomeGetSpecials>
name          getSpecials
defaultType   new ArrayList<HomeGetSpecials>()
*/

/**


    private static void filterFor(HomeGetSpecialsGoods home) {
        if (home.getProductId() == null) {
            home.setProductId("");
        }
        if (home.getName() == null) {
            home.setName("");
        }
        if (home.getBn() == null) {
            home.setBn("");
        }
        if (home.getPrice() == null) {
            home.setPrice("");
        }
        if (home.getMktprice() == null) {
            home.setMktprice("");
        }
        if (home.getBeginTime() == null) {
            home.setBeginTime("");
        }
        if (home.getStoreNum() == null) {
            home.setStoreNum("");
        }
        if (home.getImageHotSales() == null) {
            home.setImageHotSales("");
        }
        if (home.getImageCountry() == null) {
            home.setImageCountry("");
        }
        if (home.getBrief() == null) {
            home.setBrief("");
        }
        if (home.getJoinNum() == null) {
            home.setJoinNum("");
        }
    }

    private static void filterFor(HomeGetSpecials home) {
        if (home.getGoods() == null) {
            home.setGoods(new ArrayList<HomeGetSpecialsGoods>());
        } else {
            for (HomeGetSpecialsGoods item : home.getGoods()) {
                filterFor(item);
            }
        }
        if (home.getUrl() == null) {
            home.setUrl("");
        }
        if (home.getLink() == null) {
            home.setLink("");
        }
        if (home.getLinkType() == null) {
            home.setLinkType("");
        }
        if (home.getSpecialId() == null) {
            home.setSpecialId("");
        }
        if (home.getCurTime() == null) {
            home.setCurTime("");
        }
    }

    public static void filter(HomeGetSpecialsResponse home) {
        if (home.getGetSpecials() == null) {
            home.setGetSpecials(new ArrayList<HomeGetSpecials>());
        } else {
            for (HomeGetSpecials item : home.getGetSpecials()) {
                filterFor(item);
            }
        }
    }

*/

}
